<script setup>
import {reactive, readonly, ref, isRef, isReactive, isReadonly, isProxy} from 'vue'

const car = reactive({name: '奥迪A4L', price: '40W'})
const sum = ref(0)
const car2 = readonly(car)

console.log(isRef(sum))
console.log(isReactive(car))
console.log(isReadonly(car2))
console.log(isProxy(car))


console.log(isRef(car))
console.log(isReactive(sum))
console.log(isReadonly(car))
console.log(isReadonly(sum))
</script>

<template>
	<h1>判断数据结构的组件</h1>
</template>
